package com.maybach.workflow.common.api.exception;


import com.maybach.workflow.common.api.WorkFlowContext;

/**
 * Created by houenxun on 15/10/19.
 */
public class FlowException extends RuntimeException {
    private WorkFlowContext context;
    private String code;

    public FlowException(String code, Exception e){
        super(e);
        this.code = code;
    }

    public WorkFlowContext getContext() {
        return context;
    }

    public FlowException setContext(WorkFlowContext context) {
        this.context = context;
        return this;
    }

    public String getCode() {
        return code;
    }

    public FlowException setCode(String code) {
        this.code = code;
        return this;
    }
}
